#include "util.h"
#include "cpu.h"
CCPU cpu;
int sys_init()
{
	int board_init();
	cpu.reset();
	return board_init();
}
int sys_run()
{

	int counter=0;

	
	for(;;) 
	{
		void board_do_clock();
		if(!cpu.do_clock()) break;
		counter++;

		if(counter==1000)
		{
			board_do_clock();
			counter=0;
		}
	}

	return 1;
}